package com.jspeed.serviceswar.main;

import java.io.IOException;

import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jspeed.moderatr.ServicesModerator;

public class SomeServlet extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// This is for injection
	@EJB
	private ServicesModerator servicesModerator;

	// This is for the Locator
	//private ServicesModerator servicesModerator = ServicesModeratorLocator.getServicesModerator();

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		System.out.println("testejb");
		servicesModerator.ExecuteRequest();
		System.out.println("doGet");
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		System.out.println("doPost");
	}
}